package com.gwq.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gwq.dto.MessageDto;
import com.gwq.entity.Message;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MessageMapper extends BaseMapper<Message> {

    Page<MessageDto> pageMessage(Page<MessageDto> page, @Param("keyValues") String keyValues,@Param("title") String title, @Param("begTime") String begTime, @Param("endTime") String endTime,@Param("sort") Integer sort);

    Page<MessageDto> MyPage(Page<MessageDto> page, String keyValues, String begTime, String endTime, String userId, Integer sort);
}
